home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / dmail11d.zip / DMXFER.ZIP / DMXFER1.BAT next >
DOS Batch File  |  1991-10-19  |  2KB  |  44 lines

  1. @echo off
  2. rem DATAMAIL File Transfer Batch #1
  3. rem This Batch file Sends/Receives via ZModem-90
  4. rem Sends are performed with "Crash Recovery" turned on.
  5. rem Receives do not handle "Crash Recovery"
  6. rem
  7. rem *******************************************************************
  8. rem
  9. rem  parameters to batch file:
  10. rem       1:  R = Recieve a file (User is uploading)
  11. rem           S = Send a file (User is downloading)
  12. rem       2:  Full Drive:\Path\Filename.Ext to send/receive
  13. rem       3:  Communications port in use (1=COM1, 2=COM2, etc.)
  14. rem       4:  DTE/DCE bps rate (BBS PC-to-BBS Modem bps rate)
  15. rem       5:  Modem/Modem bps rate (BBS Modem-to-User Modem bps rate)
  16. rem       6:  UART Base address in hex. (for non-standard COMx Sysops)
  17. rem       7:  UART Base address in dec. (for non-standard COMx Sysops)
  18. rem       8:  IRQ Number (for non-standard COMx Sysops)
  19. rem
  20. rem *******************************************************************
  21. rem
  22. rem Place any set-up/initialization work here... Delete these lines if none
  23. rem
  24. rem *******************************************************************
  25. rem
  26.    if %1! == R! goto RECEIVE
  27. :SEND
  28.    DSZ port %3 speed %4 ha cts D sz -r -rr %2
  29.    goto TERMINUS
  30. :RECEIVE
  31.    DSZ port %3 speed %4 ha cts D rz %2
  32.    if ERRORLEVEL == 1 goto ERROR
  33.    goto TERMINUS
  34. :ERROR
  35.    if exist %2 del %2
  36. :TERMINUS
  37. rem
  38. rem *******************************************************************
  39. rem
  40. rem Place any wrap-up/termination work here... Delete these lines if none
  41. rem
  42. rem *******************************************************************
  43. rem
  44.